﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TestMvc3.Models;

namespace TestMvc3.Controllers
{
    public class StoreController : Controller
    {
        //
        // GET: /Store/

       MusicStoreEntities storeDB = new MusicStoreEntities();

        public ActionResult Index()
        {
            var genres = storeDB.Genres;
            return View(genres);

        }


        //
        // GET: /Store/

        public ActionResult Browse(string genre)
        {
            var genModel = new Genre() { Name = genre };
            return View(genModel);
        }


        //
        // GET: /Store/

        public ActionResult Details(int id)
        {
            var album = new Album(){  Title ="album" +id};
            return View(album);
        }

    }
}
